//
//  Tools.m
//  StudyDrive
//
//  Created by 蔡欣东 on 15/8/27.
//  Copyright (c) 2015年 蔡欣东. All rights reserved.
//

#import "Tools.h"

@implementation Tools
+(NSArray*)getAnswerWithString:(NSString *)str{
    NSMutableArray* array = [[NSMutableArray alloc]init];
    NSArray* arr = [str componentsSeparatedByString:@"<BR>"];
    [array addObject:arr[0]];
    for (int i = 0; i<4; i++) {
        [array addObject:[arr[i+1] substringFromIndex:2]];//去掉a.截取答案文本
        
    }
    return array;
}
+(CGSize)getSizeWithSring:(NSString *)str with:(UIFont *)font withSize:(CGSize)size{
    CGSize newSize = [str sizeWithFont:font constrainedToSize:size];
    return newSize;
}
@end
